package com.taikang.hmp.hbusiness.doctor.register.service.impl;

import java.util.ArrayList;
import java.util.List;

import com.taikang.hmp.frame.common.datastructre.Dto;
import com.taikang.hmp.frame.common.datastructre.support.BaseDto;
import com.taikang.hmp.frame.common.service.impl.BaseServiceImpl;
import com.taikang.hmp.hbusiness.doctor.information.bean.Advert;
import com.taikang.hmp.hbusiness.doctor.information.bean.Information;
import com.taikang.hmp.hbusiness.doctor.register.bean.Activation;
import com.taikang.hmp.hbusiness.doctor.register.service.ActivationService;

public class ActivationServiceImpl extends BaseServiceImpl implements ActivationService {

	@Override
	public List<Dto> getActivationList(Dto paramDto) {
		List<Dto> results = new ArrayList<Dto>();
		List<Activation> list = super.getNewDao().queryForList("hd_user_space.getActivationList");
		for(Activation a : list){
			Dto result = new BaseDto();
			result.put("code_id", a.getCode_id());	
			result.put("activation_code", a.getActivation_code());	
			result.put("customer_id", a.getCustom_id());	
			result.put("first_date", a.getFirst_date());	
			result.put("last_date", a.getLast_date());	
			result.put("in_date", a.getIn_date());	
			results.add(result);
		}
		return results;
	}

}
